home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
LAUNCH36.ARJ
/
SETUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-05
|
2KB
|
57 lines
echo off
cls
echo .
echo LaunchCAD / Custom#Menu setup program
echo .
echo This program will extract files from both the LaunchCAD and Custom#Menu
echo ZIP archives to your AutoCAD directory and modify your ACAD.PGP and
echo ACAD.LSP files. Backups are make of these files as ACAD.PG2 and ACAD.LS2
echo .
echo Press any key to continue or CTRL-C to quit now.
echo .
pause > nul
if [%1] == [] goto :usage
if [%2] == [] goto :usage
if not exist %1unzip.exe goto baddrive
if not exist %2\acad.exe goto badacad
:ok
echo .
echo Extracting Custom#Menu files...
echo .
%1unzip %1cmenu*.zip %2 /o
rename %2\!read.me! readme.cmu
rename %2\manifest manifest.cmu
rename %2\register.doc register.cmu
echo Extracting LaunchCAD files...
%1unzip %1lcad*.zip %2 /o
if not exist %2\acad.pgp goto nopgp
copy %2\acad.pgp %2\acad.pg2
copy %2\acad.pgp + %2\lc.pgp %2\acad.pgp
goto lisp
:nopgp
echo Unable to locate the file ACAD.PGP, you must add the contents of
echo LC.PGP to ACAD.PGP manually
:lisp
if not exist %2\acad.lsp goto nolisp
copy %2\acad.lsp %2\acad.ls2
copy %2\acad.lsp + %2\lc.lsp %2\acad.lsp
goto done
:nolisp
echo Unable to locate the file ACAD.LSP, you must add the contents of
echo LC.LSP to ACAD.LSP manually
:done
echo Done
goto end
:badacad
echo Error: %2 is not your AutoCAD directory.
goto usage
:baddrive
echo Error: the file UNZIP.EXE can not be found on drive %1
:usage
echo .
echo In order for Setup to work properly you must provide both the
echo floppy drive and your AutoCAD directory:
echo .
echo Usage: SETUP A: C:\ACAD
:end